package com.cy.ppj.model.domian.statistics;

import com.cy.ppj.model.enums.CommissionType;
import lombok.Data;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @description: 用户统计
 * @author: Ocean
 * @create: 2018-09-03 10:31
 **/
@Data
@Table(name = "t_statistics_user_commission")
public class StatisticsUserCommission {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    /**
     * 佣金
     */
    private BigDecimal amount;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 佣金类型
     */
    private CommissionType type;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

}
